import {Component, ElementRef, EventEmitter, Input, Output, ViewChild} from '@angular/core';

@Component({
  selector: 'dhl-title',
  templateUrl: './dhl-title.component.html',
})
export class DhlTitleComponent {


  @ViewChild('tempRef', {static: true, read: ElementRef}) tempRef: ElementRef;

  @Input() viewComponent;

  @Input()
  set show(value) {
    $(this.tempRef.nativeElement).parent()
      .trigger('showTitleEvent',
        {key: this.dataKey, value}
      );
  };


  @Input() dataKey;

  @Output() showTitleEvent = new EventEmitter();

  @Output() onClick = new EventEmitter();


}



